<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class UserInfo extends BasicModel
{
    use HasDateTimeFormatter;

    protected $table = 'users_extend';

    protected $primaryKey = 'id';


    /**
     * @param $uid
     * @return UserInfo|\Illuminate\Database\Eloquent\Builder|Model|object|null
     */
    public function getDetail($uid)
    {
        $where['uid'] = $uid;
        return self::where($where)->first();
    }


}
